import Axios from '../../lib/request'

//查询全部商品列表
export const getAllspu = function () {
    return Axios.get('/tbSpu/all')
}
//获取广告列表
export const getbannerList = function () {
    return Axios.get('/banner/list')
}
//广告删除
export const deletebanner = function (id) {
    return Axios.delete(`/banner/delete/?id=${id}`)
}
//广告新增
export const addbanner = function (data) {
    return Axios.post('/banner/addBanner', data)
}
//广告修改
export const updatebanner = function (data) {
    return Axios.put('/banner/updateBanner', data)
}

//////新接口
//广告列表
export const tbBannerQueryList = function (data) {
    return Axios.post('/tbBanner/queryList',data)
}
//删除广告
export const tbBannerDelete = function (id) {
    return Axios.get(`/tbBanner/deleteById?id=${id}`)
}
//广告新增
export const tbBannerInsert = function (data) {
    return Axios.post('/tbBanner/insert', data)
}
//广告修改
export const tbBannerUpdate = function (data) {
    return Axios.post('/tbBanner/update', data)
}
